package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//订单明细表
@Mapper
public interface OrderDetailMapper {
    //批量插入订单明细信息
    void inserts(List<OrderDetail> list);
    //根据订单id查询订单详情信息
    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> getDetailById(Long orderId);
}
